import request from '@/utils/request'

// 查询详情列表
export function listDetails(query) {
  return request({
    url: '/camp/details/list',
    method: 'get',
    params: query
  })
}

// 查询详情详细
export function getDetails(detailid) {
  return request({
    url: '/camp/details/' + detailid,
    method: 'get'
  })
}

// 新增详情
export function addDetails(data) {
  return request({
    url: '/camp/details',
    method: 'post',
    data: data
  })
}

// 修改详情
export function updateDetails(data) {
  return request({
    url: '/camp/details',
    method: 'put',
    data: data
  })
}

// 删除详情
export function delDetails(detailid) {
  return request({
    url: '/camp/details/' + detailid,
    method: 'delete'
  })
}
